package com.zqwh.xtool.model;

import com.zqwh.yj.sdk.utils.httpRequest.subscribers.NetCallback;
import com.zqwh.xtool.domain.UserTemplatesVO;
import com.zqwh.xtool.domain.UserVO;
import com.zqwh.xtool.greendao.db.User;

import java.util.List;

/**
 * Created by eason.yang on 2018/2/7.
 */
public interface UserModel {
    void signInByAccount(Long devId, String username, String password, NetCallback<UserVO> callback);
    void signInByCardNo(Long devId, String cardNo, NetCallback<UserVO> callback);
    void signInById(Long devId, Long userId, NetCallback<UserVO> callback);
    void getTemplateList(NetCallback<List<UserTemplatesVO>> callback);
    void setTemplate(Long userId, Integer templateNum, String template, NetCallback<Object> callback);

    boolean insertMultUser(List<User> userList);
    List<User> queryAllUser();
}
